package com.laizhenghua.ribbonRule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @date: 2022/1/15 11:20
 */
@Configuration
public class RibbonRule {
    @Bean
    public IRule roundRobinRule() {
        // 轮询选取策略
        return new RoundRobinRule();
    }
}
